//-----------------------------------------------------------------------
// <copyright file="a_PrizeService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_PrizeService
    {
        #region a_Prize

        public static void Createa_Prize(a_Prize a_Prize)
        {            
            try
            {
                a_PrizeDAO a_PrizeDAO = new a_PrizeDAO();
                a_PrizeDAO.Createa_Prize(a_Prize);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Prize(a_Prize a_Prize)
        {            
            try
            {
                a_PrizeDAO a_PrizeDAO = new a_PrizeDAO();
                a_PrizeDAO.Updatea_Prize(a_Prize);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Prize(int prizeID)
        {            
            try
            {
                a_PrizeDAO a_PrizeDAO = new a_PrizeDAO();
                a_PrizeDAO.Deletea_Prize(prizeID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Prize Geta_Prize(int prizeID)
        {            
            try
            {
                a_PrizeDAO a_PrizeDAO = new a_PrizeDAO();
                return a_PrizeDAO.Geta_Prize(prizeID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_PrizeCollection Geta_PrizeList(a_PrizeColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_PrizeDAO a_PrizeDAO = new a_PrizeDAO();
                return a_PrizeDAO.Geta_PrizeList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_PrizeCollection Geta_PrizeList(a_PrizeColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_PrizeDAO a_PrizeDAO = new a_PrizeDAO();
                return a_PrizeDAO.Geta_PrizeList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}